package com.lehecai.ucenter.action.user;

import com.lehecai.ucenter.action.BaseAction;
import com.lehecai.ucenter.constant.GlobalConstant;

public class LogoutAction extends BaseAction {
	private static final long serialVersionUID = -8830679912602886965L;

	public String handle() {
		logger.info("进入注销登录");
		if (super.getSession().get(GlobalConstant.USER_SESSION_KEY) != null) {		
			super.getSession().remove(GlobalConstant.USER_SESSION_KEY);
		}
		super.setForwardUrl("/");
		logger.info("注销登录结束");
		return "forward";
	}
}
